<? 
	require("required/dbconnect.php");
		
	if(empty($_GET['token']))
	{
		$unlock_msg=1;
	}
	else
	{ 
		$unlock_code=$_GET['token'];
		
		$match=mysql_query("select count(*) as result from os_contactinfo where id=1 and abfs_unlock_code='$unlock_code'");
		
				
		if(mysql_result($match,0,"result")>0)
		{
			mysql_query("update os_abfs set attempt=0");
			$unlock_msg=2;
		}
		else
		{
			$unlock_msg=1;
		}
	}
	
	header("Location:login.php?unlock_msg=$unlock_msg");	
?>

